<#-- 服务接口定义 -->
package ${package};
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import tech.wetech.admin.common.base.Page;
import tech.wetech.admin.common.base.PageResultSet;
import tech.wetech.admin.service.system.${tableClass.shortClassName}Service;
import tech.wetech.admin.mapper.system.${tableClass.shortClassName}Mapper;
import ${tableClass.packageName}.${tableClass.shortClassName};


@Service
public class ${tableClass.shortClassName}ServiceImpl implements ${tableClass.shortClassName}Service{

    @Autowired
    private ${tableClass.shortClassName}Mapper ${tableClass.lowerCaseName}Mapper;

    <#-- 查询所有记录 -->
    @Override
    public List<${tableClass.shortClassName}> findAll(){
        return null;
    };

    public PageResultSet<${tableClass.shortClassName}> findByPage(Page page){
        return null;
    };

    <#-- 根据ID查询 -->
    public ${tableClass.shortClassName} findOne(Long ${tableClass.lowerCaseName}Id){
        return ${tableClass.lowerCaseName}Mapper.selectByPrimaryKey(${tableClass.lowerCaseName}Id);
    };

    <#-- 插入记录 -->
    @Override
    public  boolean create${tableClass.shortClassName}(${tableClass.shortClassName} ${tableClass.lowerCaseName}){
        return false;
    };

    <#-- 更新记录 -->
    @Override
    public int update${tableClass.shortClassName}(${tableClass.shortClassName} ${tableClass.lowerCaseName}){
         return 0;
    };

    <#-- 删除记录 -->
    @Override
   public void delete${tableClass.shortClassName}(Long ${tableClass.lowerCaseName}Id){

   }
}